<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class DingTalkLog extends BaseModel
{
    use HasFactory;
    protected $table = 'dingtalk_log';
    protected $guarded = [];

    public function debug($key, $data)
    {
        self::create(['key' => $key, 'data' => json_encode($data)]);
    }
}
